﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Xml;
using MyLib.Data;

namespace MyLib.Configuration
{
    public class IBatisNetHandler : IConfigurationSectionHandler
    {
        public static List<XmlNode> _sqlMapps=new List<XmlNode>();
        public object Create(object parent, object configContext, System.Xml.XmlNode section)
        {
            if (section.ChildNodes.Count > 0)
            {
                foreach (XmlNode node in section.ChildNodes)
                {
                    _sqlMapps.Add(node);
                }
                DataAccess.ClearInstance();
            }
            return _sqlMapps;
        }
    }

   
}
